/*
 Navicat Premium Data Transfer

 Source Server         : mysql
 Source Server Type    : MySQL
 Source Server Version : 80100
 Source Host           : localhost:3306
 Source Schema         : pay

 Target Server Type    : MySQL
 Target Server Version : 80100
 File Encoding         : 65001

 Date: 13/09/2023 19:50:00
*/

SET NAMES utf8mb4;
SET
FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for t_dict_item
-- ----------------------------
DROP TABLE IF EXISTS `pay_dict_item`;
CREATE TABLE `pay_dict_item`(
    `id`          bigint unsigned NOT NULL AUTO_INCREMENT,
    `dict_id`     bigint unsigned NOT NULL COMMENT '字典id',
    `item_text`   varchar(100) DEFAULT NULL COMMENT '字典项文本',
    `item_value`  varchar(100) DEFAULT NULL COMMENT '字典项值',
    `description` varchar(255) DEFAULT NULL COMMENT '描述',
    `sort_order`  int          DEFAULT NULL COMMENT '排序',
    `status`      int          DEFAULT NULL COMMENT '状态（1启用 0不启用）',
    `create_by`   varchar(32)  DEFAULT NULL,
    `create_time` datetime     DEFAULT NULL,
    `update_by`   varchar(32)  DEFAULT NULL,
    `update_time` datetime     DEFAULT NULL,
    PRIMARY KEY (`id`) USING BTREE,
    KEY `index_table_dict_id` (`dict_id`) USING BTREE,
    KEY `index_table_sort_order` (`sort_order`) USING BTREE,
    KEY `index_table_dict_status` (`status`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='字典项表';

-- ----------------------------
-- Records of t_dict_item
-- ----------------------------
BEGIN;
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('1', '1', '支付宝', 'ZFB', '支付宝', 1, 1, '1', '2023-09-13 16:06:51', '1', '2023-09-13 16:06:51');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('2', '1', '微信', 'WX', '微信', 2, 1, '1', '2023-09-13 16:17:36', '1', '2023-09-13 16:17:36');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('3', '1', '银联', 'YL', '银联', 3, 1, '1', '2023-09-13 16:17:36', '1', '2023-09-13 16:17:36');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('4', '2', '待付款', 'WAIT_BUYER_PAY', '待付款', 1, 1, '1', '2023-09-13 16:47:24', '1', '2023-09-13 16:47:24');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('5', '2', '交易成功', 'TRADE_SUCCESS', '交易成功', 2, 1, '1', '2023-09-13 16:47:24', '1', '2023-09-13 16:47:24');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('6', '2', '订单取消', 'CANCEL_SUCCESS', '订单取消', 3, 1, '1', '2023-09-13 16:47:24', '1', '2023-09-13 16:47:24');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('7', '2', '退款成功', 'REFUD_SUCCESS', '退款成功', 4, 1, '1', '2023-09-13 16:47:24', '1', '2023-09-13 16:47:24');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('8', '2', '退款失败', 'REFUD_FAIL', '退款失败', 5, 1, '1', '2023-09-13 16:47:24', '1', '2023-09-13 16:47:24');
INSERT INTO `pay_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`) VALUES ('9', '2', '订单已关闭', 'TRADE_CLOSED', '订单已关闭', 6, 1, '1', '2023-09-13 16:47:24', '1', '2023-09-13 16:47:24');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
